package com.itzhoun.mapper;

import com.itzhoun.annotation.Ds;
import com.itzhoun.entity.User;
import com.itzhoun.enums.DataSourceType;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author 周楠
 * @Date 2022/06/28/下午 9:59
 */
@Mapper
public interface UserMapper {

    /**
     * 自定义数据源 主数据源
     * @param id
     * @return
     */
    @Ds(value = DataSourceType.MASTER)
    User selectById(Integer id);


}
